package tt.dz.appserver.dao.ext;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;

import tt.dz.appserver.dao.base.BasisDao;
import tt.dz.appserver.entity.model.pub.Label;
import tt.dz.appserver.entity.model.pub.ServerLabel;

/**
 * 标签管理Dao
 * 
 * @author USER001
 *
 */

@Repository
public class ServerLabelDao extends BasisDao<ServerLabel> {



	/**
	 * 标签查找
	 */
	@Cacheable(value = "serverLabel", key = "'label'+#label.label_type")
	public List<ServerLabel> findLabel( ServerLabel label) {

		label.setValid_flag(1);
		
		return super.findExample(label, null, null, "level", 0);
	}


}
